<template>
    <div class="item">
        <appVideoItem :videoList="list"> </appVideoItem>
    </div>
</template>
<script setup lang="ts">
    import appVideoItem from '@/components/app-video-item.vue';
    import {getRecommendList} from "@/api/request";
    import {ref} from "vue";
interface recommendFormat {
    commentCount:string
    desc:string
    id:string
    imgSrc:string
    link:string
    playCount:string
    videoSrc:string
}

let list = ref<recommendFormat[]>([]);

    getRecommendList().then(res=>{
        // console.log(res);
        list.value = res.data.result;
    })
</script>
<style>
    .item{
        display: flex;
        flex-wrap: wrap;
    }
</style>